function togglesidebar()
{
	sidebar = $("#sidebar_td");
	if(typeof hid == "undefined" || !hid)
	{
		$("#sidebar_td").slideUp();
		hid = true;
	}
	else { $("#sidebar_td").slideDown(); hid=false; }
}

function revertValue(id, value) {
	a = $("#val_"+id);
	a.attr("value", value);
	$("#rev_"+id).fadeOut(500);
	niceAlert("Reverted to default value '"+value+"'.", 2);
}

function revertBoolValue(id, value) {
	if(value == "0"){ // So its supposed to be false...
		$("#"+id+"_true").removeAttr("checked");
		$("#"+id+"_false").attr("checked", "checked");
	}
	else {
		$("#"+id+"_false").removeAttr("checked");
		$("#"+id+"_true").attr("checked", "checked");
	}
	$("#rev_"+id).fadeOut(500);
	niceAlert("Reverted to default boolean value.", 2);
}

function showExtra(id) {
	$("#login-"+id+"-extra").slideToggle(250);
}

$().ready(function() {
	// Statrows alternated
	$("p.statrow:odd").addClass("statrowalt");
	// Configurations
	$(".confsingle:odd").addClass("confsinglespecial");
	// Login attempts (Even this!)
	$(".loginfail:odd").addClass("loginfailalt");
	$(".loginsuccess:odd").addClass("loginsuccessalt");
});